<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>变量</title>
</head>
<body>
<script>

    var width;
    width=5;
    document.write("width:"+width+"<br/>");
    var catName="皮皮";
    var x,y,z=10;
    height=500;
    document.write("catName:"+catName+"<br/>");
    document.write("x:"+x+"<br/>");
    document.write("y:"+y+"<br/>");
    document.write("z:"+z+"<br/>");
    document.write("height:"+height+"<br/>");




</script>
</body>
</html>